/*
 * @Author: WeiLoong
 * @Date: 2020-07-14 18:22:36
 * @LastEditors: WeiLoong
 * @LastEditTime: 2020-07-15 17:55:53
 * @Description:
 */
export default{
  namespaced: true,
  state: {
    allDictionary: []
  },
  getters: {
    baowuAlertSeverity (state) {
      let findValue = state.allDictionary.filter(item => {
        return item.dictCode === 'baowualertSeverity';
      });

      return findValue || [];
    },

    alarmSource (state) {
      let findValue = state.allDictionary.filter(item => {
        return item.dictCode === 'appName';
      });
      return findValue || [];
    }
  },
  mutations: {
    setAllDictionary (state, allDictionary) {
      state.allDictionary = allDictionary;
    }
  },
  actions: {}
};
